function nullCheck(){
    var uname = document.getElementById('uname');
    var pwd = document.getElementById('pwd');
    if (uname.value.length == 0 || pwd.value.length == 0){
        confirm('Username or password not be allowed null value.')
        return false;
    }
    return true;
}